package com.zryc.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 用户登陆日志表
 * </p>
 *
 * @author xujiajun
 * @since 2022-10-17
 */
@TableName("customer_login_log")
@ApiModel(value = "CustomerLoginLog对象", description = "用户登陆日志表")
public class CustomerLoginLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("登陆日志ID")
    @TableId(value = "login_id", type = IdType.AUTO)
    private Integer loginId;

    @ApiModelProperty("登陆用户ID")
    private Integer customerId;

    @ApiModelProperty("用户登陆时间")
    private LocalDateTime loginTime;

    @ApiModelProperty("登陆IP")
    private Integer loginIp;

    @ApiModelProperty("登陆类型：0未成功，1成功")
    private Byte loginType;

    public Integer getLoginId() {
        return loginId;
    }

    public void setLoginId(Integer loginId) {
        this.loginId = loginId;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public LocalDateTime getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(LocalDateTime loginTime) {
        this.loginTime = loginTime;
    }

    public Integer getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(Integer loginIp) {
        this.loginIp = loginIp;
    }

    public Byte getLoginType() {
        return loginType;
    }

    public void setLoginType(Byte loginType) {
        this.loginType = loginType;
    }

    @Override
    public String toString() {
        return "CustomerLoginLog{" +
            "loginId = " + loginId +
            ", customerId = " + customerId +
            ", loginTime = " + loginTime +
            ", loginIp = " + loginIp +
            ", loginType = " + loginType +
        "}";
    }
}
